package com.css.modules.lawRepo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.css.common.utils.PageUtils;
import com.css.modules.lawRepo.entity.LawRepoDocApprovalEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;


@Mapper
public interface LawRepoDocApprovalDao extends BaseMapper<LawRepoDocApprovalEntity> {
    @Select("select * from LAW_REPO_DOC_APPROVAL")
    PageUtils queryPage(Map<String, Object> params);
    @Select("select * from LAW_REPO_DOC_APPROVAL where DOC_Id=#{docId}")
    LawRepoDocApprovalEntity findByDocId(String docId);
    @Update("update LAW_REPO_DOC_APPROVAL set DEL_FLAG = #{delFlag} where DEL_FLAG != '1'")
    int updateDelFlagAll(String delFlag);

    int commonUpdateDelFlagBatch(Map<String, Object> map);
}
